package com.tidc.commonality.api;

import com.tidc.commonality.fallbackFactory.StudentCheckProviderFallbackFactory;
import com.tidc.commonality.fallbackFactory.StudentDeleteFallbackFactory;
import com.tidc.commonality.ov.UserOV;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @ClassNmae StudentDeleteController
 * @Description TODO
 * @Author 冯涛滔
 **/
@FeignClient(name = "DELETEPROVIDER",fallbackFactory = StudentDeleteFallbackFactory.class)
public interface StudentDeleteApi {
	@ApiOperation(value = "学生删除自己创建的项目 需要要删除的项目的id")
	@RequestMapping(value = "/student/delete/work/{id}",method = RequestMethod.DELETE)
	public UserOV deleteWork(@PathVariable(value = "id")int id, String token);

	@ApiOperation("学生删除自己项目的队员")
	@RequestMapping(value = "/student/delete/member/{teamid}/{studentid}",method = RequestMethod.DELETE)
	public UserOV deleteMember(@PathVariable(value = "teamid")int teamId, String token, @PathVariable(value = "studentid")int stduentId);
}
